package com.thinkit.bigdata.web.model.sys;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SysApprovalRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SysApprovalRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andApprovaltaskidIsNull() {
            addCriterion("approvalTaskId is null");
            return (Criteria) this;
        }

        public Criteria andApprovaltaskidIsNotNull() {
            addCriterion("approvalTaskId is not null");
            return (Criteria) this;
        }

        public Criteria andApprovaltaskidEqualTo(Long value) {
            addCriterion("approvalTaskId =", value, "approvaltaskid");
            return (Criteria) this;
        }

        public Criteria andApprovaltaskidNotEqualTo(Long value) {
            addCriterion("approvalTaskId <>", value, "approvaltaskid");
            return (Criteria) this;
        }

        public Criteria andApprovaltaskidGreaterThan(Long value) {
            addCriterion("approvalTaskId >", value, "approvaltaskid");
            return (Criteria) this;
        }

        public Criteria andApprovaltaskidGreaterThanOrEqualTo(Long value) {
            addCriterion("approvalTaskId >=", value, "approvaltaskid");
            return (Criteria) this;
        }

        public Criteria andApprovaltaskidLessThan(Long value) {
            addCriterion("approvalTaskId <", value, "approvaltaskid");
            return (Criteria) this;
        }

        public Criteria andApprovaltaskidLessThanOrEqualTo(Long value) {
            addCriterion("approvalTaskId <=", value, "approvaltaskid");
            return (Criteria) this;
        }

        public Criteria andApprovaltaskidIn(List<Long> values) {
            addCriterion("approvalTaskId in", values, "approvaltaskid");
            return (Criteria) this;
        }

        public Criteria andApprovaltaskidNotIn(List<Long> values) {
            addCriterion("approvalTaskId not in", values, "approvaltaskid");
            return (Criteria) this;
        }

        public Criteria andApprovaltaskidBetween(Long value1, Long value2) {
            addCriterion("approvalTaskId between", value1, value2, "approvaltaskid");
            return (Criteria) this;
        }

        public Criteria andApprovaltaskidNotBetween(Long value1, Long value2) {
            addCriterion("approvalTaskId not between", value1, value2, "approvaltaskid");
            return (Criteria) this;
        }

        public Criteria andApprovaluserIsNull() {
            addCriterion("approvalUser is null");
            return (Criteria) this;
        }

        public Criteria andApprovaluserIsNotNull() {
            addCriterion("approvalUser is not null");
            return (Criteria) this;
        }

        public Criteria andApprovaluserEqualTo(Long value) {
            addCriterion("approvalUser =", value, "approvaluser");
            return (Criteria) this;
        }

        public Criteria andApprovaluserNotEqualTo(Long value) {
            addCriterion("approvalUser <>", value, "approvaluser");
            return (Criteria) this;
        }

        public Criteria andApprovaluserGreaterThan(Long value) {
            addCriterion("approvalUser >", value, "approvaluser");
            return (Criteria) this;
        }

        public Criteria andApprovaluserGreaterThanOrEqualTo(Long value) {
            addCriterion("approvalUser >=", value, "approvaluser");
            return (Criteria) this;
        }

        public Criteria andApprovaluserLessThan(Long value) {
            addCriterion("approvalUser <", value, "approvaluser");
            return (Criteria) this;
        }

        public Criteria andApprovaluserLessThanOrEqualTo(Long value) {
            addCriterion("approvalUser <=", value, "approvaluser");
            return (Criteria) this;
        }

        public Criteria andApprovaluserIn(List<Long> values) {
            addCriterion("approvalUser in", values, "approvaluser");
            return (Criteria) this;
        }

        public Criteria andApprovaluserNotIn(List<Long> values) {
            addCriterion("approvalUser not in", values, "approvaluser");
            return (Criteria) this;
        }

        public Criteria andApprovaluserBetween(Long value1, Long value2) {
            addCriterion("approvalUser between", value1, value2, "approvaluser");
            return (Criteria) this;
        }

        public Criteria andApprovaluserNotBetween(Long value1, Long value2) {
            addCriterion("approvalUser not between", value1, value2, "approvaluser");
            return (Criteria) this;
        }

        public Criteria andApprovaltimeIsNull() {
            addCriterion("approvalTime is null");
            return (Criteria) this;
        }

        public Criteria andApprovaltimeIsNotNull() {
            addCriterion("approvalTime is not null");
            return (Criteria) this;
        }

        public Criteria andApprovaltimeEqualTo(Date value) {
            addCriterion("approvalTime =", value, "approvaltime");
            return (Criteria) this;
        }

        public Criteria andApprovaltimeNotEqualTo(Date value) {
            addCriterion("approvalTime <>", value, "approvaltime");
            return (Criteria) this;
        }

        public Criteria andApprovaltimeGreaterThan(Date value) {
            addCriterion("approvalTime >", value, "approvaltime");
            return (Criteria) this;
        }

        public Criteria andApprovaltimeGreaterThanOrEqualTo(Date value) {
            addCriterion("approvalTime >=", value, "approvaltime");
            return (Criteria) this;
        }

        public Criteria andApprovaltimeLessThan(Date value) {
            addCriterion("approvalTime <", value, "approvaltime");
            return (Criteria) this;
        }

        public Criteria andApprovaltimeLessThanOrEqualTo(Date value) {
            addCriterion("approvalTime <=", value, "approvaltime");
            return (Criteria) this;
        }

        public Criteria andApprovaltimeIn(List<Date> values) {
            addCriterion("approvalTime in", values, "approvaltime");
            return (Criteria) this;
        }

        public Criteria andApprovaltimeNotIn(List<Date> values) {
            addCriterion("approvalTime not in", values, "approvaltime");
            return (Criteria) this;
        }

        public Criteria andApprovaltimeBetween(Date value1, Date value2) {
            addCriterion("approvalTime between", value1, value2, "approvaltime");
            return (Criteria) this;
        }

        public Criteria andApprovaltimeNotBetween(Date value1, Date value2) {
            addCriterion("approvalTime not between", value1, value2, "approvaltime");
            return (Criteria) this;
        }

        public Criteria andApprovalnoteIsNull() {
            addCriterion("approvalNote is null");
            return (Criteria) this;
        }

        public Criteria andApprovalnoteIsNotNull() {
            addCriterion("approvalNote is not null");
            return (Criteria) this;
        }

        public Criteria andApprovalnoteEqualTo(String value) {
            addCriterion("approvalNote =", value, "approvalnote");
            return (Criteria) this;
        }

        public Criteria andApprovalnoteNotEqualTo(String value) {
            addCriterion("approvalNote <>", value, "approvalnote");
            return (Criteria) this;
        }

        public Criteria andApprovalnoteGreaterThan(String value) {
            addCriterion("approvalNote >", value, "approvalnote");
            return (Criteria) this;
        }

        public Criteria andApprovalnoteGreaterThanOrEqualTo(String value) {
            addCriterion("approvalNote >=", value, "approvalnote");
            return (Criteria) this;
        }

        public Criteria andApprovalnoteLessThan(String value) {
            addCriterion("approvalNote <", value, "approvalnote");
            return (Criteria) this;
        }

        public Criteria andApprovalnoteLessThanOrEqualTo(String value) {
            addCriterion("approvalNote <=", value, "approvalnote");
            return (Criteria) this;
        }

        public Criteria andApprovalnoteLike(String value) {
            addCriterion("approvalNote like", value, "approvalnote");
            return (Criteria) this;
        }

        public Criteria andApprovalnoteNotLike(String value) {
            addCriterion("approvalNote not like", value, "approvalnote");
            return (Criteria) this;
        }

        public Criteria andApprovalnoteIn(List<String> values) {
            addCriterion("approvalNote in", values, "approvalnote");
            return (Criteria) this;
        }

        public Criteria andApprovalnoteNotIn(List<String> values) {
            addCriterion("approvalNote not in", values, "approvalnote");
            return (Criteria) this;
        }

        public Criteria andApprovalnoteBetween(String value1, String value2) {
            addCriterion("approvalNote between", value1, value2, "approvalnote");
            return (Criteria) this;
        }

        public Criteria andApprovalnoteNotBetween(String value1, String value2) {
            addCriterion("approvalNote not between", value1, value2, "approvalnote");
            return (Criteria) this;
        }

        public Criteria andApprovalipIsNull() {
            addCriterion("approvalIp is null");
            return (Criteria) this;
        }

        public Criteria andApprovalipIsNotNull() {
            addCriterion("approvalIp is not null");
            return (Criteria) this;
        }

        public Criteria andApprovalipEqualTo(String value) {
            addCriterion("approvalIp =", value, "approvalip");
            return (Criteria) this;
        }

        public Criteria andApprovalipNotEqualTo(String value) {
            addCriterion("approvalIp <>", value, "approvalip");
            return (Criteria) this;
        }

        public Criteria andApprovalipGreaterThan(String value) {
            addCriterion("approvalIp >", value, "approvalip");
            return (Criteria) this;
        }

        public Criteria andApprovalipGreaterThanOrEqualTo(String value) {
            addCriterion("approvalIp >=", value, "approvalip");
            return (Criteria) this;
        }

        public Criteria andApprovalipLessThan(String value) {
            addCriterion("approvalIp <", value, "approvalip");
            return (Criteria) this;
        }

        public Criteria andApprovalipLessThanOrEqualTo(String value) {
            addCriterion("approvalIp <=", value, "approvalip");
            return (Criteria) this;
        }

        public Criteria andApprovalipLike(String value) {
            addCriterion("approvalIp like", value, "approvalip");
            return (Criteria) this;
        }

        public Criteria andApprovalipNotLike(String value) {
            addCriterion("approvalIp not like", value, "approvalip");
            return (Criteria) this;
        }

        public Criteria andApprovalipIn(List<String> values) {
            addCriterion("approvalIp in", values, "approvalip");
            return (Criteria) this;
        }

        public Criteria andApprovalipNotIn(List<String> values) {
            addCriterion("approvalIp not in", values, "approvalip");
            return (Criteria) this;
        }

        public Criteria andApprovalipBetween(String value1, String value2) {
            addCriterion("approvalIp between", value1, value2, "approvalip");
            return (Criteria) this;
        }

        public Criteria andApprovalipNotBetween(String value1, String value2) {
            addCriterion("approvalIp not between", value1, value2, "approvalip");
            return (Criteria) this;
        }

        public Criteria andOldstatusIsNull() {
            addCriterion("oldStatus is null");
            return (Criteria) this;
        }

        public Criteria andOldstatusIsNotNull() {
            addCriterion("oldStatus is not null");
            return (Criteria) this;
        }

        public Criteria andOldstatusEqualTo(Integer value) {
            addCriterion("oldStatus =", value, "oldstatus");
            return (Criteria) this;
        }

        public Criteria andOldstatusNotEqualTo(Integer value) {
            addCriterion("oldStatus <>", value, "oldstatus");
            return (Criteria) this;
        }

        public Criteria andOldstatusGreaterThan(Integer value) {
            addCriterion("oldStatus >", value, "oldstatus");
            return (Criteria) this;
        }

        public Criteria andOldstatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("oldStatus >=", value, "oldstatus");
            return (Criteria) this;
        }

        public Criteria andOldstatusLessThan(Integer value) {
            addCriterion("oldStatus <", value, "oldstatus");
            return (Criteria) this;
        }

        public Criteria andOldstatusLessThanOrEqualTo(Integer value) {
            addCriterion("oldStatus <=", value, "oldstatus");
            return (Criteria) this;
        }

        public Criteria andOldstatusIn(List<Integer> values) {
            addCriterion("oldStatus in", values, "oldstatus");
            return (Criteria) this;
        }

        public Criteria andOldstatusNotIn(List<Integer> values) {
            addCriterion("oldStatus not in", values, "oldstatus");
            return (Criteria) this;
        }

        public Criteria andOldstatusBetween(Integer value1, Integer value2) {
            addCriterion("oldStatus between", value1, value2, "oldstatus");
            return (Criteria) this;
        }

        public Criteria andOldstatusNotBetween(Integer value1, Integer value2) {
            addCriterion("oldStatus not between", value1, value2, "oldstatus");
            return (Criteria) this;
        }

        public Criteria andNewstatusIsNull() {
            addCriterion("newStatus is null");
            return (Criteria) this;
        }

        public Criteria andNewstatusIsNotNull() {
            addCriterion("newStatus is not null");
            return (Criteria) this;
        }

        public Criteria andNewstatusEqualTo(Integer value) {
            addCriterion("newStatus =", value, "newstatus");
            return (Criteria) this;
        }

        public Criteria andNewstatusNotEqualTo(Integer value) {
            addCriterion("newStatus <>", value, "newstatus");
            return (Criteria) this;
        }

        public Criteria andNewstatusGreaterThan(Integer value) {
            addCriterion("newStatus >", value, "newstatus");
            return (Criteria) this;
        }

        public Criteria andNewstatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("newStatus >=", value, "newstatus");
            return (Criteria) this;
        }

        public Criteria andNewstatusLessThan(Integer value) {
            addCriterion("newStatus <", value, "newstatus");
            return (Criteria) this;
        }

        public Criteria andNewstatusLessThanOrEqualTo(Integer value) {
            addCriterion("newStatus <=", value, "newstatus");
            return (Criteria) this;
        }

        public Criteria andNewstatusIn(List<Integer> values) {
            addCriterion("newStatus in", values, "newstatus");
            return (Criteria) this;
        }

        public Criteria andNewstatusNotIn(List<Integer> values) {
            addCriterion("newStatus not in", values, "newstatus");
            return (Criteria) this;
        }

        public Criteria andNewstatusBetween(Integer value1, Integer value2) {
            addCriterion("newStatus between", value1, value2, "newstatus");
            return (Criteria) this;
        }

        public Criteria andNewstatusNotBetween(Integer value1, Integer value2) {
            addCriterion("newStatus not between", value1, value2, "newstatus");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}